<?php
session_start();
if (isset($_SESSION['index'])) {
    $_SESSION['index'] = $_SESSION['index']+1;
    $_SESSION['page1'] = $_SESSION['page1']+1;
    $_SESSION['page2'] = $_SESSION['page2']+1;
    $_SESSION['page3'] = $_SESSION['page3']+1;
    
} else {
    $_SESSION['index'] = 1;
}
echo "Index Views Count On This Session:" . $_SESSION['index'];
echo "<BR/>Page1 Views Count On This Session:" . $_SESSION['page1'];
echo "<BR/>Page2 Views Count On This Session:" . $_SESSION['page2'];
echo "<BR/>Page3 Views Count On This Session:" . $_SESSION['page3'];
?>